<template>
	<view class="user">
		<view class="top">
			<image src="../../static/images/history.png" mode=""></image>
			<view class="text">浏览历史</view>
		</view>
		<view class="contnet">
			<view class="row" v-for="item in 10">
				<news-box
					:item="{
						title: '浏览历史',
						looktime: '2023-01-01 10:10:10',
						picurl: '../../static/images/nopic.jpg',
					}"
					@click.native="goDetail"
				></news-box>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {}
	},

	methods: {
		// 跳转新闻详情函数
		goDetail() {
			uni.navigateTo({
				url: '/pages/detail/detail',
			})
		},
	},
}
</script>

<style lang="scss" scoped>
.user {
	.top {
		padding: 50rpx 0;
		color: #555;
		background-color: #f8f8f8;
		display: flex;
		flex-direction: column;
		align-items: center;
		image {
			width: 150rpx;
			height: 150rpx;
		}
		.text {
			font-size: 38rpx;
			padding-top: 20rpx;
		}
	}
}
.contnet {
	padding: 30rpx;
	.row {
		border-bottom: 1px dotted #9b9fef;
		margin-bottom: 20rpx;
	}
}
</style>
